home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / ixemul / sdk / man / cat3 / ieee.0 < prev    next >
Encoding:
Text File  |  1998-06-15  |  2.7 KB  |  79 lines

  1.  
  2. IEEE(3)                    UNIX Programmer's Manual                    IEEE(3)
  3.  
  4. NNAAMMEE
  5.      ccooppyyssiiggnn, ffiinniittee, iillooggbb, nneexxttaafftteerr, rreemmaaiinnddeerr, ssccaallbbnn - Functions for
  6.      IEEE arithmetic
  7.  
  8. SSYYNNOOPPSSIISS
  9.      ##iinncclluuddee <<mmaatthh..hh>>
  10.  
  11.      _d_o_u_b_l_e
  12.      ccooppyyssiiggnn(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y)
  13.  
  14.      _f_l_o_a_t
  15.      ccooppyyssiiggnnff(_f_l_o_a_t _x, _f_l_o_a_t _y)
  16.  
  17.      _i_n_t
  18.      ffiinniittee(_d_o_u_b_l_e _x)
  19.  
  20.      _i_n_t
  21.      ffiinniitteeff(_f_l_o_a_t _x)
  22.  
  23.      _i_n_t
  24.      iillooggbb(_d_o_u_b_l_e _x)
  25.  
  26.      _i_n_t
  27.      iillooggbbff(_f_l_o_a_t _x)
  28.  
  29.      _d_o_u_b_l_e
  30.      nneexxttaafftteerr(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y)
  31.  
  32.      _f_l_o_a_t
  33.      nneexxttaafftteerrff(_f_l_o_a_t _x, _f_l_o_a_t _y)
  34.  
  35.      _d_o_u_b_l_e
  36.      rreemmaaiinnddeerr(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y)
  37.  
  38.      _f_l_o_a_t
  39.      rreemmaaiinnddeerrff(_f_l_o_a_t _x, _f_l_o_a_t _y)
  40.  
  41.      _d_o_u_b_l_e
  42.      ssccaallbbnn(_d_o_u_b_l_e _x, _i_n_t _n)
  43.  
  44.      _f_l_o_a_t
  45.      ssccaallbbnnff(_f_l_o_a_t _x, _i_n_t _n)
  46.  
  47. DDEESSCCRRIIPPTTIIOONN
  48.      These functions are required or recommended by .
  49.  
  50.      ccooppyyssiiggnn() returns _x with its sign changed to _y's.
  51.  
  52.      ffiinniittee() returns the value 1 just when -infinity < _x < +infinity; other-
  53.      wise a zero is returned (when |_x| = infinity or _x is _N_a_N
  54.  
  55.      iillooggbb() returns _x's exponent _n, in integer format.  iillooggbb(_+_-_i_n_f_i_n_i_t_y) re-
  56.      turns INT_MAX and iillooggbb(_0) returns INT_MIN.
  57.  
  58.      nneexxttaafftteerr() returns the next machine representable number from _x in di-
  59.      rection _y.
  60.  
  61.      rreemmaaiinnddeerr() returns the remainder _r := _x - _n_*_y where _n is the integer
  62.      nearest the exact value of _x/_y; moreover if |_n - _x/_y| = 1/2 then _n is
  63.      even.  Consequently the remainder is computed exactly and |_r| <= |_y|/2.
  64.      But rreemmaaiinnddeerr(_x, _0) and rreemmaaiinnddeerr(_i_n_f_i_n_i_t_y, _0) are invalid operations
  65.      that produce a _N_a_N.
  66.  
  67.      ssccaallbbnn() returns _x*(2**_n) computed by exponent manipulation.
  68.  
  69. SSEEEE AALLSSOO
  70.      math(3)
  71.  
  72. HHIISSTTOORRYY
  73.      The iieeeeee functions appeared in 4.3BSD.
  74.  
  75. SSTTAANNDDAARRDDSS
  76.  
  77.  
  78. BSD Experimental                 Feb 25, 1994                                2
  79.